package main

import (
	"bufio"
	"fmt"
	"os"
)

func main() {
	var i int
	var n rune
	scanner := bufio.NewScanner(os.Stdin)
	scanner.Scan()
	str := scanner.Text()
	k := []rune(str)
	if len(k)%2 == 0 {
		for i = 0; i <= (len(k) / 2); i++ {
			if i == len(k)-i {
				break
			}
			n = k[i]
			k[i] = k[len(k)-i-1]
			k[len(k)-i-1] = n
		}
	} else {
		for i = 0; i <= (len(k) / 2); i++ {
			if i == len(k)-i-1 {
				break
			}
			n = k[i]
			k[i] = k[len(k)-i-1]
			k[len(k)-i-1] = n
		}
	}

	fmt.Println(string(k))
}
